#include "driverlib.h"
#include <stdint.h>
#include <stdbool.h>
#include "delay.h"
#include "system.h"
#include "led.h"
#include "key.h"


int main(void)
{
	uint8_t temp;
    SysInit();
	delay_init();
	led_init();
	key_init();
    while (1)
    {
		temp = key_scan();
		if(temp == 1)
		{
			led_on();
		}
		else if(temp == 2)
		{
			led_toggle();
		}
		else
		{
		}
    }
}


